package com.baox.agridata.synchronous.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.TXDRTraffickingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TXDRTraffickingMapper {


    /**
     * 通过主键查询孵化场是否存在
     *
     * @param mid
     * @return
     */
    @DS("sichuanc")
    TXDRTraffickingEntity selectTXDRTraffickingById(@Param("mid") String mid);


    /**
     * 插入贩运户数据
     *
     * @param txdrTraffickingEntity
     * @return
     */
    @DS("sichuanz")
    Integer insertIntoTXDRTrafficking(TXDRTraffickingEntity txdrTraffickingEntity);


    /**
     * 更新贩运户数据
     *
     * @param txdrTraffickingEntity
     * @return
     */
    @DS("sichuanz")
    Integer updateTXDRTraffickingById(TXDRTraffickingEntity txdrTraffickingEntity);


    /**
     * 同步四川的贩运户到成都系统
     *
     * @return
     */
    @DS("sichuanc")
    List<TXDRTraffickingEntity> selectTXDRTraffickingDataToChengDu(@Param("startTime") String startTime);

}
